from django.db import models


# Create your models here.

class Shop(models.Model):
    name = models.CharField(max_length=20)
    username = models.CharField(max_length=30)
    password = models.CharField(max_length=120)


class Goods(models.Model):
    name = models.CharField(max_length=20)
    price = models.DecimalField(max_digits=7, decimal_places=2)
    img = models.ImageField()
    shop = models.ForeignKey(to=Shop, on_delete=models.CASCADE)
